package people;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *
 * people
 *
 * 2018/6/10-20:45
 * 2018
 * Created by wuqiang on 2018/6/10.
 */
@Component
public class People {

    private String name; //姓名

    //@Autowired//如果没有这个注解，则就需要显示装配了。
    private Leg leg; //腿，不过是抽象的，要拼装起来

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Leg getLeg() {
        return leg;
    }

    public void setLeg(Leg leg) {
        this.leg = leg;
    }

    @Override public String toString() {
        return "People{" + "name='" + name + '\'' + ", leg=" + leg + '}';
    }
}
